package com.yiquan.search.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

/**
 * 搜索行为
 *
 * @author Tyrone
 * @date 2022/3/7 20:32
 */
@Data
@Document(indexName = "yiquan_action_search",type = "search")
public class SearchAction {
    /**
     * id
     */
    @Id
    private Long id;

    /**
     * 用户id
     */
    private Long userId;
    /**
     * 搜索类型
     */
    private Integer searchContentType;
    /**
     * 搜索关键词
     */
    private String keyword;
    /**
     * 搜素时间
     */
    private Date searchDate;
}
